<?php $req = new request(array("module" => "user", "action" => "menu"));
module::load($req); ?>

<div class="section">
	<h1>Register</h1>
	<div class="toolbar">
		<?php echo html::button("register", "#", array("class" => "save", "onclick" => "$(\"#registerform\").submit();", "icon" => "new")); ?>
		<?php echo html::button("cancel", document::getRefferer(), array("class" => "cancel")); ?>
	</div>
	<div>
		<form id="registerform" action="/user/register" method="post">
			<dl>
				<dt>Name</dt>
				<dd>
					<input type="text" name="name" />
				</dd>
				
				<dt>Password</dt>
				<dd>
					<input type="password" name="password" />
				</dd>
				
				<dt>Email</dt>
				<dd>
					<input type="text" name="email" />
				</dd>
			</dl>
		</form>		
	</div>
</div>